package dsx.log;

import java.util.ArrayList;

public class _LogType {
    String typeName;
    int mode;
    int fileMode;
    long maxFileSize;
    String logRoot;
    ArrayList<String> consoleList;
    int consoleLimit;

    public _LogType() {
        typeName = "";
        mode = 0;
        fileMode = 1;
        maxFileSize = 0;
        logRoot = "./log/";
        consoleList = new ArrayList<String>();
        consoleLimit = 1000;
    }

    public _LogType copy() {
        _LogType newLogType = new _LogType();
        newLogType.typeName = this.typeName;
        newLogType.mode = this.mode;
        newLogType.fileMode = this.fileMode;
        newLogType.maxFileSize = this.maxFileSize;
        newLogType.logRoot = this.logRoot;
        newLogType.consoleList = this.consoleList;
        newLogType.consoleLimit = this.consoleLimit;
        return newLogType;
    }

    public String getTypeName() {
        return typeName;
    }

    public void setTypeName(String typeName) {
        this.typeName = typeName;
    }

    public int getMode() {
        return mode;
    }

    public void setMode(int mode) {
        this.mode = mode;
    }

    public int getFileMode() {
        return fileMode;
    }

    public void setFileMode(int fileMode) {
        this.fileMode = fileMode;
    }

    public long getMaxFileSize() {
        return maxFileSize;
    }

    public void setMaxFileSize(long maxFileSize) {
        this.maxFileSize = maxFileSize;
    }

    public String getLogRoot() {
        return logRoot;
    }

    public void setLogRoot(String logRoot) {
        this.logRoot = logRoot;
    }

    public ArrayList<String> getConsoleList() {
        return consoleList;
    }

    public void setConsoleList(ArrayList<String> consoleList) {
        this.consoleList = consoleList;
    }

    public int getConsoleLimit() {
        return consoleLimit;
    }

    public void setConsoleLimit(int consoleLimit) {
        this.consoleLimit = consoleLimit;
    }
}
